<?php
  if(!function_exists("checkAdminLogin"))
   {
    function checkAdminLogin()
    {
        $CI=&get_instance();
        $admin_login=$CI->session->userdata("admin_login_status");
        if($admin_login&&$admin_login=="true") return true;
        else return false;
    }
   }

 ?>